.wrapper {
    width: 315px;
    display: flex;
    flex-direction: column;
}

.post {
    margin-top: 20px;
    overflow: hidden;
    box-sizing: border-box;

}

.imgWrapper {
    width: 315px;
}

.title {
    margin: 10px 0;
    width: 315px;
    text-align: center;
}

.img {
    max-width: 100%;
    object-fit: contain;
}

.comment {
    margin-top: auto;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px -2px gray;
    width: 315px;
    box-sizing: border-box;
    position: relative;
}

.text {
    margin-top: 5px;
    margin-left: 40px;
    font-style: italic;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(211, 211, 211, 0.7);
    word-wrap: break-word;
    max-width: 200px;
}

.delete {
    position: absolute;
    top: 2px;
    right: 2px;
    display:flex;
    justify-content: center;
    align-items: center;
    color: rgba(128, 128, 128, 0.4);
    align-self: center;
    margin-left: auto;
    cursor: pointer;
    border-radius: 49%;
    padding: 9px 10px;
    transform: scale(1);
    transition: all .3s;
    animation: fadeIn .3s ease-out;
}

.delete:hover {
    background-color: rgba(128, 128, 128, 0.1);
    color: black;
    transition: all .3s;
}

@keyframes fadeIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1.3);
    }
}

@media (max-width: 1005px) {
    .wrapper {
        width: 48.5%;
    }

    .imgWrapper {
        width: 100%;
        text-align: center;
    }

    .title {
        width: 100%;
    }
    .comment {
        width: 100%;
    }
}

@media (max-width: 750px) {
    .wrapper {
        width: 100%;
    }
}